package com.zhz.lib.project.service.hotlink;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhz.project.common.util.hibernate.BaseDAO;
import com.zhz.lib.project.domain.hotlink.Hotlink;

@Service
public class HotlinkService {
    private static Logger       logger = Logger.getLogger(HotlinkService.class);
    @Autowired
    private BaseDAO             baseDao;

    /**
     * 获取链接
     * 
     * @param hotlinkVO
     * @return
     */
    public List<Hotlink> getHotLink(String type) {
        return (List<Hotlink>) baseDao.select("from Hotlink where type='" + type
                + "' order by sortNumber ");
}
}
